vxbW83627dhgK - Driver for the hardware monitoring functionality of the Winbond W83627DHG Super-I/O chip
vxbW83627dhgDrvRegister( ) - register template sensor driver
W83627dhgInstInit( ) - first level initialization routine of sensor device
W83627dhgInstInit2( ) - second level initialization routine of sensor device
W83627dhgInstConnect( ) - third level initialization routine of sensor device
W83627dhgShow( ) - show routine
W83627dhgTempGet( ) - retrieve the value of the current temperature
W83627dhgTempGetMax( ) - retrieve the maximum value of the temperature
W83627dhgTempHyst( ) - retrieve temperature sensor hysteresis values
W83627dhgVoltageGet( ) - retrieve voltage values
W83627dhgFanGet( ) - retrieve fan values
W83627dhgSetFanSpeed( ) - set fan speed value
This driver provides support for the Winbond W83627DHG hardware monitor.
There are functions available to read the operating voltage of the CPU
and power supply voltages of the system, CPU and system temperature, speed of fans.
User application is able to get information from device using
VxBus custom methods defined for this driver:
METHOD_DECL(vxbTempGet);
METHOD_DECL(vxbTempGetMax);
METHOD_DECL(vxbTempGetHyst);
METHOD_DECL(sensorShow);
METHOD_DECL(vxbVoltageGet);
METHOD_DECL(vxbFanGet);
METHOD_DECL(vxbSetFanSpeed);
vxbW83627dhgDrvRegister( ) - register template sensor driver
This routine registers the template sensor driver with the VxBus subsystem.
This routine contains the first instructions of the device driver that are ever executed within a VxWorks system. This function registers the driver with VxBus by providing pointers to the data structures listed previously. Once this step is complete, VxWorks is able to associate this driver with appropriate hardware within the system to form an instance.
N/A
Not Available
W83627dhgInstInit( ) - first level initialization routine of sensor device
This is the function called to perform the first level initialization of the template sensor device.
This routine is called early during system initialization, and *MUST NOT* make calls to OS facilities such as memory allocation and I/O.
pInst - device identifier
N/A
Not Available
W83627dhgInstInit2( ) - second level initialization routine of sensor device
This routine performs the second level initialization of the sensor device.
This routine is called later during system initialization. OS features such as memory allocation are available at this time.
pInst - device identifier
N/A
Not Available
W83627dhgInstConnect( ) - third level initialization routine of sensor device
This is the function called to perform the third level initialization of the sensor device.
pInst - device identifier
N/A
Not Available
W83627dhgShow( ) - show routine
This routine prints information about the instance to the system
console. This is integrated with vxBusShow.
pInst - device identifier
0, always
Not Available
W83627dhgTempGet( ) - retrieve the value of the current temperature
This function retrives current temperature values for system, CPU and auxiliary device
pInst - device identifier,
sysTemp - system current temperature,
cpuTemp - CPU current temperature,
auxTemp - auxiliary device current temperature.
OK, or ERROR
Not Available
W83627dhgTempGetMax( ) - retrieve the maximum value of the temperature
This function retrives maximum temperature values for system, CPU and auxiliary device
pInst - device identifier,
sysTempMax - system maximum temperature,
cpuTempMax - CPU maximum temperature,
auxTempMax - auxiliary device maximum temperature.
OK, or ERROR
Not Available
W83627dhgTempHyst( ) - retrieve temperature sensor hysteresis values
This function retrives temperature sensor hysteresis values for system, CPU and auxiliary device
pInst - device identifier,
sysTempHyst - system temperature sensor hysteresis,
cpuTempHyst - CPU temperature sensor hysteresis,
auxTempHyst - auxiliary device temperature sensor hysteresis.
OK, or ERROR
Not Available
W83627dhgVoltageGet( ) - retrieve voltage values
This function retrives output voltage (mV), high/low limits of output voltage (mV), output name.
VXB_DEVICE_ID pInst - device identifier,
double* voltage - output voltage value,
double* HighLimit - output voltage high limit,
double* LowLimit - output voltage low limit,
char* name - output name,
int n - output number.
OK, or ERROR
Not Available
W83627dhgFanGet( ) - retrieve fan values
This function retrives fan speed (revolution per minute), minimum fan speed, divisor
VXB_DEVICE_ID pInst - device identifier ,
UINT16* fan - fan speed in revolutuion per minute,
UINT16* min - minimum fan speed in revolutuion per minute,
UINT8* div - fan divisor value,
int n - fan number.
OK, or ERROR
Not Available
W83627dhgSetFanSpeed( ) - set fan speed value
This function sets fan speed value (for PWM or DC mode)
VXB_DEVICE_ID pInst - device identifier,
UINT8 n, - fan number,
UINT8 val - fan speed value to set.
OK, or ERROR
Not Available